Skip to content

feat(claude): name Claude connections - #683

Merged
kalaspuff merged 3 commits into
mainfrom
fctl/1841-it-would-be-great-to-be-able-to-name-to
Dec 5, 2026
Merged

kalaspuff merged 3 commits into
mainfrom
fctl/1841-it-would-be-great-to-be-able-to-name-to

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

People can name their Claude connections ("Romanesco seat", "Personal"), so that with several it's clear which one is which and which one each workspace should use. A connection now goes by the name its person gave it, else its account, else its kind, everywhere it's shown: Settings → Claude, each workspace's Claude picker (Settings → Workspaces and the workspace's own settings), the card a session shows when Claude refused its connection, the Settings list's summary, and fctl claude status.

  • Settings → Claude: click a connection's name to rename it in place (Enter or leaving the field saves, Escape cancels, emptying it takes the name away), as passkeys and the authenticator app rename. Its pencil shows on hover, and always on touch screens and for unnamed connections when there are several. The facts line now starts with what the name hides (the account, the kind). A new line lists the workspaces whose sessions run on each connection, as chips, with a link to choose per workspace; for a connection that stopped working it says in red which workspaces chose it.
  • Connecting: the token form has an optional Name field once the person already has a connection, and fctl claude connect --name … works for every way to connect.
  • Pickers: options go by name, with the account, kind and plan underneath, and "added {day}" when two go by the same name.
  • API and CLI: PATCH /api/v1/me/claude/{id} with {"label": "…"} (null or "" clears it), fctl claude rename <connection> <name> and --clear (a blank name without --clear is refused). --name is checked before anything connects. The audit log records "renamed a Claude connection" without the name, since admins read it and never see connection names.
  • Migration 0081 clears the "Claude login" label fctl gave every login itself, which would otherwise hide the login's account now that names come first; new logins get no label.

I checked it in cargo xtask dev with the new CLI: connected a token with --name, renamed, cleared, tried an unknown id (404), an 81-character name (refused) and an empty PATCH (no change), and chose connections per workspace. The screenshots come from that stack. cargo xtask check lint, the web app's tests (2,142), npm run check and the fctl CLI tests pass. Docs (cli.md, getting-started.md, llms.txt) and the design docs are updated.

Screenshots

Before, on main: two long-lived tokens look alike, as in the report.

before-dark.png

After: named, with the workspaces each one runs.

after-dark.png

Renaming in place:

after-rename-dark.png

A workspace's picker in Settings → Workspaces:

picker-dark.png

Light theme, and a phone (pencils always show on touch):

after-light.png

after-phone-dark.png

Related

Worth confirming

  • Decision: a person's name goes before the account email. Before this change the account came first and the label was a fallback, so a login someone names now shows the name, with its account in the facts line.
  • Decision: a token an admin token set (provisioned) keeps the name its admins gave it: the admin API reads that name and re-provisioning sets it, so renaming one is refused, and Settings shows its name without a pencil.
  • Decision: workspace admins still never see a name a person gave (People tab, fctl workspaces members --claude, the audit log), as the oversight docs already promised for labels.
  • Decision: the Name field in the token form shows only once the person already has a connection, because the first one has nothing to be told apart from. Sign-ins with Claude take no name in the form; they can be renamed afterwards, and fctl claude connect --login --name … names them once the sign-in completes.
  • Assumption: nobody named a login "Claude login" on purpose. Migration 0081 clears that label on logins, since only fctl ever set it.

fctl session


Note

Medium risk. It adds a column and a PATCH endpoint for Claude connections and changes how the CLI, Settings and session pages show them, but the data is a display name only and the migration just adds a column.

What it does. People can now name each of their Claude connections (for example "Romanesco seat") in Settings → Claude, with fctl claude rename and fctl claude connect --name, or with PATCH /api/v1/me/claude/{id}. The name goes before the account and kind wherever a connection is shown, and workspace admins never see a name its person gave it. A connection an admin token set keeps the name its admins gave it, and renaming it is refused.

Migration. 0081_claude_connection_names.sql adds a column to claude_credentials, so the control plane's database needs migrating on deploy.

fctl review's first look at 6599831 · 28 files, +854 −86 · Review agent settings

fctl-sh Bot added 2 commits December 5, 2026 12:21
People rename a connection in place in Settings → Claude, with fctl claude
rename, or when connecting (--name, and a Name field once they have another
connection); PATCH /api/v1/me/claude/{id} takes the label. A connection goes
by its name, else its account, else its kind, in Settings, the workspace
pickers and a session's refused card, and each row lists the workspaces whose
sessions run on it. Logins lose the 'Claude login' label fctl gave them, which
would have hidden their account.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl/src/cmd/claude.rs Resolved
Comment thread crates/fctl/src/cmd/claude.rs Resolved
Comment thread crates/fctl-control/src/api/claude.rs Resolved
… admins' names to them

A blank fctl claude rename takes nothing away without --clear; --name is
checked before anything connects, and a rename that fails after a sign-in
warns instead of failing the connect. A token an admin token set keeps the
name its admins gave it: the admin API reads it, so renaming it is refused,
and Settings shows it without a pencil. docs/api.md documents the endpoint.
@fctl-sh

fctl-sh Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

On the summary's API reference finding: fixed in 6599831. docs/api.md now documents PATCH /api/v1/me/claude/{id} ({"label": …}, null or "" for none, refused for an admin-set token), and its sentence on what admins see says "a name its person gave it" rather than "its label", since admins do read the names they gave the tokens they set. llms.txt says the same.

@kalaspuff
kalaspuff merged commit 8912ac3 into main Dec 5, 2026
12 of 14 checks passed
@kalaspuff
kalaspuff deleted the fctl/1841-it-would-be-great-to-be-able-to-name-to branch December 5, 2026 12:39
kalaspuff pushed a commit to hyperstructure/design that referenced this pull request Dec 5, 2026
## Summary

Describes how Settings → Claude names connections, for the change in
fctl that lets people name them: the title renames in place, the facts
line leads with what the name hides (the account, the kind), and a line
of workspace chips says which workspaces each connection runs. It also
records the one naming order (the person's name, else the account, else
the kind) that pickers and cards share, and that a connection without a
name among several always shows its pencil.

- hyperstructure/fctl#683

[fctl session](https://app.fctl.sh/s/ses_01M931PXJPXKZ87VCG3CJD2CP5)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Low risk.** It only changes design documentation, with no code
touched.
>
> **What it does.** Documents how Settings → Claude names connections,
for the fctl change that lets people name them. The title renames in
place, the facts line leads with what the name hides, and workspace
chips show where each connection runs. It also records the shared naming
order (the person's name, else the account, else the kind), that an
unnamed connection among several always shows its pencil, and that a
token an admin token set keeps its admins' name, without a pencil.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M9332BTHXHF0C06KGKRHMRK2)'s first
look at
[`3eb76f9`](3eb76f9)
· 1 file, +3 −1 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant